﻿layui.define(['jquery', 'form','common'], function (exports) {
    var $ = layui.jquery;
    var form = layui.form;
    var com = layui.common;
    var project = {
       
    };

    form.on('select', function (data) {
        console.log($(this).text() +'111111111');
        if (data.value.length === 1) {
            com.getOption('/Project/ProjectNames', data.value, "ProjectName");
        }
        if (data.elem.id==="") {
            com.getOption('/Skill/SkillNames',data.value, "BefDB", "AftDB");
        }
        if (data.elem.id===""){
            com.getOption('/Skill/SkillNames',data.value, "BefLang", "AftLang");
        }
        $("#" + data.elem.id+"Name").val($(this).text());
    });

    exports('project', project);
});